from idlelib.iomenu import encoding

import requests

url = 'https://fanyi.baidu.com/sug'

s = input("请输入单词")
query = {
    'kw': s
}

res = requests.post(url, data=query)
print(res.json())
res.close()